﻿using System.Reflection;

namespace Foundation.Core
{
    public class SelectCollectionCustomOptionsBuilder : SelectExtend
    {
        public SelectCollectionCustomOptionsBuilder(SelectItemOptions options) : base(options.Extensions)
        {
            Options = options;
        }

        public SelectItemOptions Options { get; }
    }

    public class SelectCollectionCustomServiceLoderOptionsBuilder : SelectCollectionCustomOptionsBuilder
    {
        public SelectCollectionCustomServiceLoderOptionsBuilder(SelectItemOptions options, Type serviceType, MethodInfo methodInfo) : base(options)
        {
            ServiceType = serviceType;
            MethodInfo = methodInfo;
        }

        public Type ServiceType { get; }

        public MethodInfo MethodInfo { get; }
    }
}
